"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.WebSocketManager = void 0;
class WebSocketManager {
    constructor() {
        this.clientList = [];
    }
    getSocketClient(url) {
        for (let i = 0; i < this.clientList.length; i++) {
            let client = this.clientList[i];
            if (client.url == url) {
                return client;
            }
        }
    }
    getSocketClientById(id) {
        for (let i = 0; i < this.clientList.length; i++) {
            let client = this.clientList[i];
            if (client.id == id) {
                return client;
            }
        }
    }
}
exports.WebSocketManager = WebSocketManager;
WebSocketManager.instance = new WebSocketManager();
